Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Latest commit

 

History

History
10 lines (7 loc) · 352 Bytes

12.3.1 - swoole_client->errCode.md

File metadata and controls

10 lines (7 loc) · 352 Bytes

swoole_client->errCode

类型为int型。当connect/send/recv/close失败时,会自动设置$swoole_client->errCode的值。
errCode的值等于Linux errno。可使用socket_strerror将错误码转为错误信息。

echo socket_strerror($client->errCode);

附录:Linux的errno定义